import request from "@/utils/request";

export function addSubject(data) {
  return request({
    url: `/core/subject/add`,
    method: "post",
    data,
  });
}
// 获取学科列表
export function getSubjectList(params) {
  return request({
    url: `/core/subject/list`,
    method: "get",
    params,
  });
}
// 删除学科
export function deleteSubjectIds(ids) {
  return request({
    url: `/core/subject/delete/${ids}`,
    method: "delete",
  });
}
// 修改学科
export function editSubject(data) {
  return request({
    url: `/core/subject/edit`,
    method: "put",
    data,
  });
}
